package com.sikaryofficial.workbench.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * 商品操作日志表
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("goods_operate_log_t")
public class GoodsOperateLog {

    /**
     * 商品操作日志ID
     */
    @TableId(type = IdType.ASSIGN_ID, value = "goods_operate_log_id")
    @ApiModelProperty(value = "商品操作日志ID")
    private Long goodsOperateLogId;
    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;
    /**
     * 操作人ID
     */
    @ApiModelProperty(value = "操作人ID")
    private Long operateUserId;
    /**
     * 操作人名称
     */
    @ApiModelProperty(value = "操作人名称")
    private String operateUserName;
    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    @LocalDateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;
    /**
     * 操作内容
     */
    @ApiModelProperty(value = "操作内容")
    private String operateContent;
}
